package com.five.entity.qo;

import com.five.entity.Chapter;
import com.five.entity.CourseClassify;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author keibdye
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("课程表")
public class CourseQo {

    @ApiModelProperty("课程id")
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("图片")
    private String imgUrl;

    @ApiModelProperty("金额")
    private BigDecimal money;

    @ApiModelProperty("课程类型id")
    private Long courseClassifyId;

    @ApiModelProperty("简介")
    private String synopsis;

    @ApiModelProperty("是否收费（0-免费 1-付费）")
    private Integer charge;

    @ApiModelProperty("视频时长")
    private BigDecimal duration;

    @ApiModelProperty("状态")
    private Integer state;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("课程章节")
    private Chapter chapter;

    @ApiModelProperty("课程类型")
    private CourseClassify courseClassify;

}
